package com.zhiyou.model;

import java.util.Date;
import javax.persistence.*;

@Table(name = "ishop_banner")
public class Banner {
    /**
     * 主键
     */
    @Id
    private Integer id;

    /**
     * 标题
     */
    private String title;

    /**
     * 图片路径
     */
    @Column(name = "img_url")
    private String imgUrl;

    /**
     * 点击图片跳转连接
     */
    @Column(name = "link_url")
    private String linkUrl;

    /**
     * 顺序号
     */
    private Integer sort;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "create_by")
    private Integer createBy;

    /**
     * 获取主键
     *
     * @return id - 主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置主键
     *
     * @param id 主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取标题
     *
     * @return title - 标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置标题
     *
     * @param title 标题
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * 获取图片路径
     *
     * @return img_url - 图片路径
     */
    public String getImgUrl() {
        return imgUrl;
    }

    /**
     * 设置图片路径
     *
     * @param imgUrl 图片路径
     */
    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl == null ? null : imgUrl.trim();
    }

    /**
     * 获取点击图片跳转连接
     *
     * @return link_url - 点击图片跳转连接
     */
    public String getLinkUrl() {
        return linkUrl;
    }

    /**
     * 设置点击图片跳转连接
     *
     * @param linkUrl 点击图片跳转连接
     */
    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl == null ? null : linkUrl.trim();
    }

    /**
     * 获取顺序号
     *
     * @return sort - 顺序号
     */
    public Integer getSort() {
        return sort;
    }

    /**
     * 设置顺序号
     *
     * @param sort 顺序号
     */
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return create_by
     */
    public Integer getCreateBy() {
        return createBy;
    }

    /**
     * @param createBy
     */
    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }
}